PYFLAGS = -I/usr/include/python3.6m
CC = gcc
CFLAGS = -fpic $(PYFLAGS)
LDFLAGS = -shared
OBJS = repeator.o
TARGET = repeator.so

$(TARGET):$(OBJS)
	$(CC) $(OBJS) $(LDFLAGS) $(PYFLAGS) -o $(TARGET) 

$(OBJS):%.o:%.c

conf:
	echo export PYFLAGS = `python3-config --includes` > repeator.d
